/**
 * org.assess.oa.system.dao.impl.TbUserPostDAOImpl
 */
package org.assess.oa.system.dao.impl;

import java.util.List;

import org.assess.core.dao.BaseDAOImpl;
import org.assess.oa.system.bean.TbUserPost;
import org.assess.oa.system.dao.TbUserPostDAO;

/**
 * @description 操作用户岗位关联表的DAO层实现类
 * @author XiaLongxiang
 * @createtime 2012-6-5 下午1:57:38
 */
public class TbUserPostDAOImpl extends BaseDAOImpl<TbUserPost> implements TbUserPostDAO {
    @SuppressWarnings("unchecked")
    public List<TbUserPost> queryTbUserPostByUserCodeAsList(String user_code) {
        return sqlClient.queryForList("queryTbUserPostByUserCodeAsList", user_code);
    }
    
    public boolean deleteTbUserPostById(String user_post_id) {
        sqlClient.delete("deleteTbUserPostById", user_post_id);
        return true;
    }
    
    public boolean deleteTbUserPostByUserCode(String user_code) {
        sqlClient.delete("deleteTbUserPostByUserCode", user_code);
        return true;
    }
    
    public boolean deleteTbUserPostByPostId(String post_id) {
        sqlClient.delete("deleteTbUserPostByPostId", post_id);
        return true;
    }
    
}
